import request from '@/utils/request'

// 查询设备拓展信息列表
export function listDeviceExtraInfo(query) {
  return request({
    url: '/system/deviceExtraInfo/list',
    method: 'get',
    params: query
  })
}

// 查询设备拓展信息详细
export function getDeviceExtraInfo(id) {
  return request({
    url: '/system/deviceExtraInfo/' + id,
    method: 'get'
  })
}

// 新增设备拓展信息
export function addDeviceExtraInfo(data) {
  return request({
    url: '/system/deviceExtraInfo',
    method: 'post',
    data: data
  })
}

// 修改设备拓展信息
export function updateDeviceExtraInfo(data) {
  return request({
    url: '/system/deviceExtraInfo',
    method: 'put',
    data: data
  })
}

// 删除设备拓展信息
export function delDeviceExtraInfo(id) {
  return request({
    url: '/system/deviceExtraInfo/' + id,
    method: 'delete'
  })
}
